package io.renren.modules.job.task;

import io.renren.modules.job.task.crawl.CrawlNews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 * @author Freeman Liu
 * @date 2020/11/13 10:02
 */
@Component
public class CrawlTask implements ITask {

    @Autowired
    private CrawlNews crawlNews;

    @Override
    public void run(String params) {
        System.out.println("开始爬取今天的新闻....");
        crawlNews.crawlNews();
        System.out.println("爬取结束...");
    }
}
